Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Add request rate limiter in caches #291

Merged
merged 1 commit into from
Jan 9, 2018
Merged

Add request rate limiter in caches #291

merged 1 commit into from
Jan 9, 2018

Conversation

yfouquet
Copy link
Collaborator

Set a minimum duration between two requests in caches.
By default, the duration is set to 0 (i.e. the feature is disabled).

In our datacenters, we sometimes have peaks of notifications. Hence, we send many requests (using cache) during the same second, which we consider useless.
Having a rate limiter, we could stop sending so many requests, and limit to 1 request per second, or 1 request per 10 seconds, ...

Set a minimum duration between two requests in caches.
By default, the duration is set to 0 (i.e. the feature is disabled).
@yfouquet yfouquet changed the title Add request rate limiter Add request rate limiter in caches Dec 28, 2017
@yfouquet
Copy link
Collaborator Author

yfouquet commented Jan 9, 2018

Hi @rickfast,
Could you please have a look at this PR?
We really need this feature (or something similar) as it protects from network flooding in case of issue with the Consul agent (very useful for versions of Consul between 0.8.2 and 1.0.2).
I'm open to suggestion if you have another idea in mind.

@rickfast rickfast merged commit e53c4d1 into rickfast:master Jan 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants